#include <iostream>
#include <memory>
#include "TCPServer.hpp"

// ./server 8080
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        std::cout << "指令错误" << std::endl;
        return 0;
    }
    int port = std::stoi(argv[1]);
    std::unique_ptr<TCPServer> up = std::make_unique<TCPServer>(port);
    up->Init();
    up->loop();

    return 0;
}